package com.huishu.user.pojo.dto;

import com.huishu.commons.utlis.RegexUtils;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class SmsDTO {

    @Pattern(regexp = RegexUtils.REGEX_TEL, message = "手机号码格式错误")
    @NotEmpty(message = "手机号不能为空")
    String userPhone;
}
